const mongoose = require('mongoose');
const mongoConnectDB = require('../mondodb/connect')

const Schema = mongoose.Schema;

const temListSchema = new Schema({
	type: String,
	width: Number,
	height: Number,
	canvasBg: String,
	imgUrl: String,
	name: String,
	components: []
}, {
	timestamps: true,
})

temListSchema.set('autoIndex', false);

const lessTemList = mongoConnectDB.model('lessTemList', temListSchema);

module.exports = lessTemList;